Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/e2e create event #216

Merged
merged 44 commits into from
Dec 18, 2024
Merged

Fix/e2e create event #216

merged 44 commits into from
Dec 18, 2024

Conversation

misterM125
Copy link
Contributor

@misterM125 misterM125 commented Dec 11, 2024

Overview

This PR aims to refactor the end to end to create an event by removing all network calls and mocking the database to make it valid

Implementation

  • This end to end now tests the full functionalities of all repositories and viewmodels called when navigating from the map to a park by clicking on the park overview, as well as creating an event and displaying it on the park overiew

  • The end to end had to be divided into two parts, I suspect that the CI has some limitations that i am not aware of but the test won't pass on it if it is too long, leaving me only with the choice of making it significantly smaller or dividing it into two parts.

Additionnal info

  • Markers have been refactored so that you navigate to the park overview screen only by clicking on the marker info window, this is a change that had been requested and i decided to implement it here because it actually made testing marker functionalities easier
  • A test in eventOverviewTest has been modified because it wouldn't pass on the CI anymore after writing my end to end (?), similar functionalities are tested in the end to end so i decided to reduce the scope of that test to make it pass

@misterM125 misterM125 self-assigned this Dec 11, 2024
@misterM125 misterM125 added the Enhancement ✨ New feature or request label Dec 11, 2024
@misterM125 misterM125 added this to the Milestone M3 milestone Dec 11, 2024
@misterM125 misterM125 linked an issue Dec 11, 2024 that may be closed by this pull request
@misterM125 misterM125 added Bug 🐛 Something isn't working and removed Enhancement ✨ New feature or request labels Dec 12, 2024
@misterM125 misterM125 added Refactor 🛠️ Code improvements without changing behavior and removed Bug 🐛 Something isn't working labels Dec 17, 2024
@tercierp tercierp self-requested a review December 17, 2024 18:32
Copy link
Collaborator

@tercierp tercierp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good work, I already approve your PR because I only saw a cleaning code issue and a function that needs to be documented.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Since there is an unused import could you run Optimize Imports, this could be done on Android Studio via Code > Optimize Imports

@@ -40,6 +40,10 @@ open class ParkViewModel(
_currentPark.value = park
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improvement: since setCurrentPark has a doc could you also add a small function description ?

@misterM125 misterM125 merged commit 416691a into main Dec 18, 2024
3 checks passed
@misterM125 misterM125 deleted the fix/e2e-create-event branch December 18, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor 🛠️ Code improvements without changing behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor e2e create event to remove network calls
2 participants